package com.csliubo.eclipse.plugin.sqlgenerator.core.writer;

import java.io.IOException;
import java.util.List;

import com.csliubo.eclipse.plugin.sqlgenerator.core.model.Table;

/**
 * 数据输出接口
 * 
 * @author liubo
 * 
 */
public interface DataWriter {
	static final String PREPARE = "_prepare";
	static final String RESULT = "_result";
	static final String NEW_LINE = "\n";
	/**
	 * 将表格内容输出到文件中
	 * 
	 * @param fileName
	 *            文件名，全路径
	 * @param tables
	 * @throws IOException
	 */
	void write(String fileName, List<Table> tables) throws Throwable;
}
